.class public Lcom/waiqin365/h5/titlebar/WqTitleBar;
.super Lorg/apache/cordova/CordovaPlugin;


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Ljava/lang/String;

.field public g:Ljava/lang/String;

.field public h:Ljava/lang/String;

.field private i:Lorg/apache/cordova/WqCordovaActivity;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lorg/apache/cordova/CordovaPlugin;-><init>()V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->a:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->b:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->c:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->d:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->e:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->f:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->g:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->h:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/titlebar/WqTitleBar;)Lorg/apache/cordova/WqCordovaActivity;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->i:Lorg/apache/cordova/WqCordovaActivity;

    return-object v0
.end method


# virtual methods
.method public execute(Ljava/lang/String;Lorg/apache/cordova/CordovaArgs;Lorg/apache/cordova/CallbackContext;)Z
    .locals 3

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->cordova:Lorg/apache/cordova/CordovaInterface;

    invoke-interface {v0}, Lorg/apache/cordova/CordovaInterface;->getActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->i:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->i:Lorg/apache/cordova/WqCordovaActivity;

    iput-object p3, v0, Lorg/apache/cordova/WqCordovaActivity;->callbackContextMenu:Lorg/apache/cordova/CallbackContext;

    invoke-virtual {p2, v1}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p2, v1}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->g:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->g:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->i:Lorg/apache/cordova/WqCordovaActivity;

    invoke-virtual {v0}, Lorg/apache/cordova/WqCordovaActivity;->getThreadPool()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/h5/titlebar/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/h5/titlebar/b;-><init>(Lcom/waiqin365/h5/titlebar/WqTitleBar;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/WqTitleBar;->i:Lorg/apache/cordova/WqCordovaActivity;

    const v2, 0x7f080615

    invoke-virtual {v0, v2}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p3, v0}, Lorg/apache/cordova/CallbackContext;->error(Ljava/lang/String;)V

    move v0, v1

    goto :goto_0
.end method
